home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_12_05 / saks / lns3.h < prev    next >
C/C++ Source or Header  |  1994-03-23  |  377b  |  21 lines

  1. Listing 10 - An lns header with lns as an abstract base class and a 
  2. static create function
  3.  
  4. //
  5. // lns3.h - line number sequence interface
  6. //
  7. #ifndef LNS_H_INCLUDED
  8. #define LNS_H_INCLUDED
  9.  
  10. class lns
  11.     {
  12. public:
  13.     static lns *create(unsigned n);
  14.     virtual ~lns() = 0;
  15.     virtual void add(unsigned n) = 0;
  16.     virtual void print() = 0;
  17.     };
  18.  
  19. #endif
  20.  
  21.